import { Component, OnInit } from '@angular/core';
import {HttpClient} from '@angular/common/http';
import { Title } from '@angular/platform-browser';
@Component({
  selector: 'app-shops',
  templateUrl: './shops.component.html',
  styleUrls: ['./shops.component.scss']
})

export class ShopsComponent implements OnInit {
  constructor(public http: HttpClient, private titleService: Title) {
    titleService.setTitle('登录');
  }

  ngOnInit() {
  }
  get() {
    const api = 'http://192.168.2.227:8080/rotation/list';
    this.http.get(api).subscribe(respnse => {
      console.log(respnse);
    });
}
}
